﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CoreLib;
namespace XNAEditor
{
    public partial class MainForm : Form
    {
        private bool hoover3DScreen;

        public bool Hoover3DScreen
        {
            get { return hoover3DScreen; }
            set { hoover3DScreen = value; }
        }
        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {

        } 

 

        private void Mouse_Hover(object sender, EventArgs e)
        {
            Hoover3DScreen = true;
            //Cursor.Hide();
        }

        private void Form_Hover(object sender, EventArgs e)
        {
            Cursor.Show();
        }

        private void propertiesUserControl1_Load(object sender, EventArgs e)
        {

        }

        private void PictureBox_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            { 
          
                Globals.SelectedObject = null;
                return;
            }
            Program.game.MousePick();
           
        }

        private void MainMenuPanel_Paint(object sender, PaintEventArgs e)
        {

        }

        private void MainMenuFlowLayoutPanel_Paint(object sender, PaintEventArgs e)
        {

        }

        private void MainWindowPictureBox_MouseLeave(object sender, EventArgs e)
        {

            Hoover3DScreen =false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //Program.game.test.Name = "Johan";
        }
       
    }
}
